import 'package:flutter04/middleware/shop_middleware.dart';
import 'package:flutter04/pages/animated_example_01.dart';
import 'package:flutter04/pages/animated_icon.dart';
import 'package:flutter04/pages/animated_list.dart';
import 'package:flutter04/pages/dialog.dart';
import 'package:flutter04/pages/form.dart';
import 'package:flutter04/pages/grid_view.dart';
import 'package:flutter04/pages/hero.dart';
import 'package:flutter04/pages/login.dart';
import 'package:flutter04/pages/my_home_page.dart';
import 'package:flutter04/pages/news.dart';
import 'package:flutter04/pages/page_view.dart';
import 'package:flutter04/pages/page_view_builder.dart';
import 'package:flutter04/pages/page_view_builder_fullpage.dart';
import 'package:flutter04/pages/page_view_keep_alive.dart';
import 'package:flutter04/pages/page_view_swiper.dart';
import 'package:flutter04/pages/page_without_key.dart';
import 'package:flutter04/pages/register_step_one.dart';
import 'package:flutter04/pages/register_step_three.dart';
import 'package:flutter04/pages/register_step_two.dart';
import 'package:flutter04/pages/rotation_transition_test.dart';
import 'package:flutter04/pages/search.dart';
import 'package:flutter04/pages/shop.dart';
import 'package:get/get.dart';

class AppPage {
  static final routes = [
    GetPage(
      name: "/",
      page: () => const MyHomePage(),
    ),
    GetPage(
      name: "/news",
      page: () => const NewsPage(),
    ),
    GetPage(
      name: "/search",
      page: () => const SearchPage(),
    ),
    GetPage(
      name: "/form",
      page: () => const FormPage(),
    ),
    GetPage(
      name: "/shop",
      page: () => const ShopPage(),
      middlewares: [
        ShopMiddleware(),
      ],
    ),
    GetPage(
      name: "/login",
      page: () => const LoginPage(),
    ),
    GetPage(
      name: "/register1",
      page: () => const RegisterStepOnePage(),
    ),
    GetPage(
      name: "/register2",
      page: () => const RegisterStepTwoPage(),
    ),
    GetPage(
      name: "/register3",
      page: () => const RegisterStepThreePage(),
    ),
    GetPage(
      name: "/dialog",
      page: () => const DialogPage(),
    ),
    GetPage(
      name: "/pv",
      page: () => const PageViewPage(),
    ),
    GetPage(
      name: "/pvb",
      page: () => const PageViewBuilderPage(),
    ),
    GetPage(
      name: "/pvbfp",
      page: () => const PageViewBuilderFullPagePage(),
    ),
    GetPage(
      name: "/pvs",
      page: () => const PageViewSwiperPage(),
    ),
    GetPage(
      name: "/pvk",
      page: () => const PageViewKeepAlivePage(),
    ),
    GetPage(
      name: "/pnk",
      page: () => const PageWithoutKeyPage(),
    ),
    GetPage(
      name: "/al",
      page: () => const AnimatedListPage(),
    ),
    GetPage(
      name: "/ae01",
      page: () => const AnimatedExample01Page(),
    ),
    GetPage(
      name: "/att",
      page: () => const AnimationTransitionPage(),
    ),
    GetPage(
      name: "/ai",
      page: () => const AnimatedIconPage(),
    ),
    GetPage(
      name: "/gv",
      page: () => const GridViewPage(),
    ),
    GetPage(
      name: "/hp",
      page: () => const HeroPage(),
    ),
  ];
}
